package com.ofek.eventos;

import java.io.Serializable;
import java.util.ArrayList;

import com.ofek.eventos.db.datatypes.EventData;

public class EventGroup implements Serializable{
	private final int rid;
	private final ArrayList<EventData> events;

	public EventGroup(final ArrayList<EventData> events, final int rid) {
		this.rid = rid;
		this.events = events;
	}

	public EventData get(final int childPosition) {
		return events.get(childPosition);
	}

	public int getTitleResource() {
		return rid;
	}

	public int getCount() {
		return events.size();
	}

	public void remove(final EventData event) {
		events.remove(event);
	}

}
